﻿<!doctype html>
<html>
<head>
<#include "/part_meta.ftl">
<title>个人中心-迈小众</title>
<link href="${st.resDomain}/css/style.css" rel="stylesheet" type="text/css">
<link href="${st.resDomain}/css/store.css" rel="stylesheet" type="text/css">
<link href="${st.resDomain}/css/autostyle.css" rel="stylesheet" type="text/css">
<link href="${st.resDomain}/css/MyCenter.css" rel="stylesheet" type="text/css">
</head>

<body>
<div class="boxw" style="padding-bottom:3rem;">
  <div class="center info">
    <div>
    <div class="pic"><span><img src="${st.resDomain}/images/temp/YC310.jpg"/></span><h2>您好！ ${loginMember.name}</h2></div>
    <div class="n1"></div>
    </div>
    <div style="display:none;">
    <div class="pic"><span><img src="${st.resDomain}/images/temp/YC310.jpg"/></span><h2>您还没有登录哦!</h2></div>
    <div class="n1"><a href="${st.domain}/member/login">登陆</a> | <a href="${st.domain}/member/register">注册</a></div>
    </div>
    <div class="f_clear"><span>积分<br>${loginMember.integral}</span><i>|</i><span>优惠券<br>0</span></div>
  </div>
  <div class="center nav">
    <ul>
      <li><a href="${st.userDomain}/memberSpend/list">消费记录</a></li>
      <li><a href="${st.userDomain}/order/list"><span id="orderCount" class="count">0</span>我的订单</a></li>
      <li><a href="javascript:alert('缺少页面');"><span class="count">0</span>我的奖品</a></li>
      <li><a href="javascript:alert('缺少页面');"><span class="count">0</span>收藏店铺</a></li>
      <li><a href="${st.userDomain}/memberNotice"><span id="mnCount" class="count">0</span>消息中心</a></li>
      <li><a href="${st.userDomain}/address">收货地址</a></li>
      <li><a href="${st.userDomain}/member">个人资料</a></li>
      <li><a href="${st.userDomain}/member/account">账户安全</a></li>
    </ul>
  </div>
</div>
<!--尾部-->
<footer>
  <div class="boxw">
    <nav class="f_clear"><a href="${st.domain}/" class="mxz"></a><a href="${st.userDomain}/shoppingCart" class="shoppingcar2"  id="shoppingCount">0</a></nav>
  </div>
</footer>
<!--尾部-->
<script src="${st.resDomain}/scripts/jquery-1.9.1.min.js"></script>
<script src="${st.resDomain}/scripts/com.js"></script>
<script type="text/javascript">

	// 获取最新通知请求地址
	var getMnCountPath = g_userDomain + "/memberNotice/count/json";
	// 获取订单数量请求地址
	var getOrderCountPath = g_userDomain + "/order/count/json";
	
	(function(){
		$.post(getOrderCountPath, {}, function(data){
			if (data.status !== 0) {
				showMsg(data.massage, 'error');
				return;
			}
			var count = parseInt(data.result);
			if (count > 0) {
				$("#orderCount").html(count).show();
			}
			
		});
		
		$.post(getMnCountPath, {}, function(data){
			if (data.status !== 0) {
				showMsg(data.massage, 'error');
				return;
			}
			var count = parseInt(data.result);
			if (count > 0) {
				$("#mnCount").html(count).show();
			}
			
		});
	})();
</script>
</body>
</html>
